import store from '@/store';
import { ThunkAction } from 'redux-thunk';
import { LoginAction, userAction } from '@/interface/store/reducers';

// 仓库数据的类型
export type RootState = ReturnType<typeof store.getState>;
// dispatch的类型
export type RootActionAll = LoginAction | userAction;
// thunk处理异步
export type MyRootThunkAction = ThunkAction<void, RootState, unknown, RootActionAll>;
